﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PhatPhucLoc.dao;

namespace PhatPhucLoc.view
{
    public partial class FormKhoHang : Form
    {
        public FormKhoHang()
        {
            InitializeComponent();
        }

        private void tsbThem_Click(object sender, EventArgs e)
        {
            FormKhoHang frmKhoHang = this;
            FormNhapKho frm = new FormNhapKho(ref frmKhoHang);
            frm.ShowDialog();
        }

        private void formKhoHang_Load(object sender, EventArgs e)
        {
            formLoad();
        }

        public void formLoad()
        {
            DataTable dt = KhohangDAO.GetAll();
            dataGridView1.DataSource = dt;
        }
    }
}
